package com.工厂模式.simple;


public class SimpleFactory {

    public static AbstractCar getCar(String type){
        if ("var".equals(type)){
            return new VarCar();
        }else if ("mini".equals(type)){
            return new MiniCar();
        }
        return null;
    }
}
